package flextv.main.event {

import com.adobe.cairngorm.control.CairngormEvent;

import flextv.core.vo.Playlist;

public class DeletePlaylistEvent extends CairngormEvent {
	
	public static const DELETE_PLAYLIST: String = "deletePlaylist";
	
	private var _playlist: Playlist;
	
	public function DeletePlaylistEvent(playlist: Playlist) {
		super(DELETE_PLAYLIST);
		if(playlist == null) throw new ArgumentError("playlist == null");
		_playlist = playlist;
	}
	
	public function get playlist(): Playlist {
		return _playlist;
	}
	
	public override function toString(): String {
		return "DeletePlaylistEvent[playlist="+_playlist+"]";
	}
	
}
}